package co.baiku.boot.core.orm.request;

import java.util.HashMap;
import java.util.Map;

public class SearchGroup {
    protected Map<String, Object> search = new HashMap<>();
    private RequestFilter.Operator operator = RequestFilter.Operator.AND;

    public SearchGroup() {
    }

    public SearchGroup(Map<String, Object> search) {
        this(search, RequestFilter.Operator.AND);
    }

    public SearchGroup(Map<String, Object> search, RequestFilter.Operator operator) {
        this.search = search;
        this.operator = operator;
    }

    public Map<String, Object> getSearch() {
        return search;
    }

    public void setSearch(Map<String, Object> search) {
        this.search = search;
    }

    public RequestFilter.Operator getOperator() {
        return operator;
    }

    public void setOperator(RequestFilter.Operator operator) {
        this.operator = operator;
    }
}
